package com.qiaofang.applet.service.property.repository;

import com.qiaofang.applet.service.property.domain.PropertyRoles;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface PropertyRolesRepository extends MongoRepository<PropertyRoles, String> {

    PropertyRoles findFirstByPropertyUniqueUuidOrderByUpdateTimeDesc(String propertyUniqueUuid);

    PropertyRoles findFirstByPropertyUuidAndCompanyUuidOrderByUpdateTimeDesc(String propertyUniqueUuid, String companyUuid);

}
